﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Model.A
{
    public class ATest_OSCInfo
    {
        public ATest_OSCInfo() { }

        public ATest_OSCInfo(string pCBSN, DateTime recordTime, bool testStep, string userID, decimal ocxo_OUT, decimal pps_OUT, decimal tod_OUT, decimal voltage, bool isPass)
        {
            this.PCBASN = pCBSN;
            this.RecordTime = recordTime;
            this.TestStep = testStep;
            this.UserID = userID;
            this.OCXO_OUT = ocxo_OUT;
            this.PPS_OUT = pps_OUT;
            this.TOD_OUT = tod_OUT;
            this.Voltage = voltage;
            this.IsPass = isPass;
        }

        public string PCBASN { get; set; }
        public DateTime RecordTime { get; set; }
        public bool TestStep { get; set; }
        public string UserID { get; set; }
        public decimal OCXO_OUT { get; set; }
        public decimal PPS_OUT { get; set; }
        public decimal TOD_OUT { get; set; }
        public decimal Voltage { get; set; }
        public bool IsPass { get; set; }

        public string TestStepName { get { return TestStep ? "老化后" : "老化前"; } }
    }
}
